<template>
  <div class="top" style="display: flex; align-items: center">
    <p class="left" style="
        width: 8px;
        height: 25px;
        background-color: #f6d39c;
        margin-right: 10px;
        border-radius: 3px;
      "></p>
    <p style="color: white; font-size: 22px; font-weight: 600">转账记录</p>
  </div>
  <div class="box1" style="display: flex; margin-top: 30px">
    <div class="leftbottom" style="
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
        align-items: center;
      ">
      <div style="
          width: 82px;
          height: 27px;
          border-radius: 5px;
          background-color: #f6d39c;
          display: flex;
          justify-content: center;
          align-items: center;
          margin-right: 10px;
        " @click="dialogVisible = true">
        <el-icon style="font-size: 14px; margin-right: 5px">
          <Plus />
        </el-icon>
        <span style="font-size: 13px">转账申请</span>
      </div>
    </div>
  </div>
  <div class="box2">
    <div class="inner inner2">
      <span>公告名称:</span>
      <el-input v-model="input" placeholder="公告名称" />
    </div>
    <div class="inner inner1">
      <span>查询列:</span>
      <el-select v-model="value" class="m-2" placeholder="全部" style="width: 80px;" height:32px>
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
      </el-select>
    </div>
    <div class="inner inner5">
      <div style="
          width: 70px;
          height: 33px;
          border-radius: 5px;
          background-color: #f6d39c;
          display: flex;
          justify-content: center;
          align-items: center;
          margin-right: 10px;
        ">
        <el-icon style="font-size: 16px; margin-right: 5px">
          <Search />
        </el-icon>
        <span>查询</span>
      </div>
    </div>
  </div>
  <div class="box3">
    <el-table :data="tableData" width="90%"
      style="font-size: 14px;margin-top: 20px;background-color: black;overflow-x: auto;"
      :header-cell-style="{ background: '#282d37', height: '30px' }">
      <el-table-column prop="number" label="编号" min-width="80" fixed sortable />
      <el-table-column prop="account" label="申请入金账号" min-width="120" fixed sortable />
      <el-table-column prop="trustAccount" label="实际入金账号" min-width="120" sortable />
      <el-table-column prop="money" label="入金金额" min-width="100" sortable />
      <el-table-column prop="status" label="状态" min-width="110" sortable />
      <el-table-column prop="note" label="备注" min-width="110" sortable />
      <el-table-column prop="time" label="转入时间" min-width="110" sortable />
    </el-table>
    <div class="block" style="margin-top: 20px;">
      <el-pagination :current-page="currentPage4" :page-sizes="[100, 200, 300, 400]" :page-size="100"
        layout="total, sizes, prev, pager, next, jumper" :total="400" @size-change="handleSizeChange"
        @current-change="handleCurrentChange" />
    </div>
  </div>
  <el-dialog v-model="dialogVisible" title="Tips" width="800px" draggable style="background-color: #272b37;">
    <template #header="{ close, titleId, titleClass }">
      <div class="my-header">
        <p style="color:white;">转账申请</p>
      </div>
    </template>
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="转出账号">
        <el-input v-model="formInline.user"  clearable />
      </el-form-item>
      <el-form-item label="转出密码">
        <el-input v-model="formInline.password"  clearable />
      </el-form-item>
      <el-form-item label="转入账号">
        <el-input v-model="formInline.account"  clearable />
      </el-form-item>
      <el-form-item label="转入金额($)">
        <el-input v-model="formInline.money"  clearable />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="dialogVisible = false">取消</el-button>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script>
import {
  HomeFilled,
  Promotion,
  Pointer,
  Edit,
  Search,
  Plus,
} from "@element-plus/icons-vue";
import { ref } from 'vue';
export default {
  data() {
    return {
      formInline : {
        user: '',
        password: '',
        account: '',
        money: '',
      },
      dialogVisible: false,
      input: '',
      value: ref(''),
      tableData: [
        {
          number: '22314142',
          time: '2024-01-11 05:44:56',
          account: '	Tom',
          trustAccount: 'Todsfsfsdm',
          money: '4512655',
          status: '已完成',
          note: '11111'
        },
      ],
      options: [
        {
          value: '新申请',
          label: '新申请',
        },
        {
          value: '转账中',
          label: '转账中',
        },
        {
          value: '已完成',
          label: '已完成',
        },
        {
          value: '作废',
          label: '作废',
        },
      ]
    };
  },
  methods: {},
  components: {},
};
</script>

<style lang="scss" scoped>
:deep(.el-progress-bar__outer) {
  background-color: rgba(255, 255, 255, 0.4);
  /* lightgray, but transparent */
}

/* 进度条颜色 我需要的是渐变色 */
:deep(.el-progress-bar__inner) {
  background-color: white;
  //background: linear-gradient(90deg, #FEC015 0%, #FE8B25 100%);
}

.box1:hover {
  cursor: pointer;
}

.custom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  //gap: 10px;

  color: white;
}

.topbox {
  width: 100%;
  height: 21px;
  display: flex;
  font-size: 13px;

  // justify-content: space-around;
  .small {
    width: 152px;
    // background-color: pink;
  }

  .small2 {
    width: 152px;
    // background-color: pink;
  }
}

.chart-wrapper {
  width: 100%;
  /* 确保内部图表容器充满el-col */
}

.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  /*   .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
  } */

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

.box2 {
  display: flex;
  align-items: center;
  color: white;
  font-size: 14px;

  span {
    margin-right: 10px;
  }

  :deep(.el-input__wrapper) {
    background-color: black;
    height: 32px;
    box-shadow: none;
  }

  .inner {
    margin-right: 10px;
  }

  .inner1 {
    :deep(.el-input__wrapper) {
      box-shadow: none;
      color: white;
      background-color: black;
    }
  }

  .inner2 {
    .el-input {
      width: 220px;
    }
  }

  .inner3 {
    align-items: center;
    display: flex;
  }

  .inner4 {
    align-items: center;
    display: flex;


    .demo-date-picker {
      display: flex;
      width: 100%;
      padding: 0;
      flex-wrap: wrap;
    }

    .demo-date-picker .block {
      padding: 30px 0;
      text-align: center;
      border-right: solid 1px var(--el-border-color);
      flex: 1;
    }

    .demo-date-picker .block:last-child {
      border-right: none;
    }

    .demo-date-picker .demonstration {
      display: block;
      color: var(--el-text-color-secondary);
      font-size: 14px;
      margin-bottom: 20px;
    }
  }

  .inner5 {
    color: #303133;
  }
}

.box3 {
  :deep(.el-table__body-wrapper tr td) {
    background-color: #2d303d;
    color: white;
  }
  :deep(.el-table td) {
    border-bottom: 3px solid black;
  }
  :deep(.el-table thead) {
    color: #fff;
  }

  :deep(.el-pagination__total) {
    color: #fff !important;
  }

  :deep(.el-pagination__jump) {
    color: #fff !important;
  }

  :deep(.el-pagination button) {
    background-color: black;
    color: white;
  }

  :deep(.el-pager li) {
    background-color: black;
    color: #fff !important;
  }

  :deep(.el-input__inner) {
    color: #fff !important;
  }
}

.el-dialog {
  .el-button{
    background-color: #f6d39c;
    border: none;
    color: black;
  }


  .el-input {
    width: 252px;
  }
}
:deep(.el-form-item__label){
    color: #fff;
  }

:deep(.el-input__wrapper) {
  background-color: black;
  box-shadow: none;
}

:deep(.el-input__inner) {
  color: #fff;
}
</style>
